import {
	defineConfig
} from "vite"
import uni from "@dcloudio/vite-plugin-uni";

export default defineConfig({
	plugins: [
		uni()
	],
	base: './',
	server: {
		proxy: {
			'/test': {
				target: 'https://gapi.jixingge.com',
				changeOrigin: true,
				secure: true,
				rewrite: path => {
					return path.replace(/^\/test/, '/')
				}
			},

		}
	}
})